const papers = [
    {
        test_id : 'p4526836',
        start_time: '2021-01-03 10:00:00',
        end_time: '2021-01-03 12:00:00',
        exam_time: '120',
        exam_name: '期中考',
        reply: '0',   //0表示还未作答，1表示已经作答
        start: '1'    //0表示还未开考，1表示已经开考
    },
    {
        test_id : 'p4526844',
        start_time: '2021-01-03 10:00:00',
        end_time: '2021-01-03 12:00:00',
        exam_time: '120',
        exam_name: '期中考',
        reply: '1',   //0表示还未作答，1表示已经作答
        start: '0'    //0表示还未开考，1表示已经开考
    },
    {
        test_id : 'p45265665',
        start_time: '2021-01-03 10:00:00',
        end_time: '2021-01-03 12:00:00',
        exam_time: '120',
        exam_name: '期中考',
        reply: '0',   //0表示还未作答，1表示已经作答
        start: '1'    //0表示还未开考，1表示已经开考
    },
    {
        test_id : 'p4526845',
        start_time: '2021-01-03 10:00:00',
        end_time: '2021-01-03 12:00:00',
        exam_time: '120',
        exam_name: '期中考',
        reply: '0',   //0表示还未作答，1表示已经作答
        start: '1'    //0表示还未开考，1表示已经开考
    },
    {
        test_id : 'p45268236',
        start_time: '2021-01-03 10:00:00',
        end_time: '2021-01-03 12:00:00',
        exam_time: '120',
        exam_name: '期中考',
        reply: '1',   //0表示还未作答，1表示已经作答
        start: '0'    //0表示还未开考，1表示已经开考
    }
]

const tests = {
    one_select: [
        {
            number: '1',
            title: 'XXXXXXXXXX',
            opt1: 'XXX',
            opt2: 'XXX',
            opt3: 'XXX',
            opt4: 'XXX',
            score: '5'
        },
        {
            number: '2',
            title: 'XXXXXXXXXX',
            opt1: 'XXX',
            opt2: 'XXX',
            opt3: 'XXX',
            opt4: 'XXX',
            score: '5'
        // },
        // {
        //     number: '3',
        //     title: 'XXXXXXXXXX',
        //     opt1: 'XXX',
        //     opt2: 'XXX',
        //     opt3: 'XXX',
        //     opt4: 'XXX',
        //     score: '5'
        // },
        // {
        //     number: '4',
        //     title: 'XXXXXXXXXX',
        //     opt1: 'XXX',
        //     opt2: 'XXX',
        //     opt3: 'XXX',
        //     opt4: 'XXX',
        //     score: '5'
        // },
        // {
        //     number: '5',
        //     title: 'XXXXXXXXXX',
        //     opt1: 'XXX',
        //     opt2: 'XXX',
        //     opt3: 'XXX',
        //     opt4: 'XXX',
        //     score: '5'
        }
    ],
    multi_select: [
        {
            number: '3',
            title: 'XXXXXXXXXX',
            opt1: 'XXX',
            opt2: 'XXX',
            opt3: 'XXX',
            opt4: 'XXX',
            score: '5'
        },
        {
            number: '4',
            title: 'XXXXXXXXXX',
            opt1: 'XXX',
            opt2: 'XXX',
            opt3: 'XXX',
            opt4: 'XXX',
            score: '5'
        // },
        // {
        //     number: '8',
        //     title: 'XXXXXXXXXX',
        //     opt1: 'XXX',
        //     opt2: 'XXX',
        //     opt3: 'XXX',
        //     opt4: 'XXX',
        //     score: '5'
        // },
        // {
        //     number: '9',
        //     title: 'XXXXXXXXXX',
        //     opt1: 'XXX',
        //     opt2: 'XXX',
        //     opt3: 'XXX',
        //     opt4: 'XXX',
        //     score: '5'
        // },
        // {
        //     number: '10',
        //     title: 'XXXXXXXXXX',
        //     opt1: 'XXX',
        //     opt2: 'XXX',
        //     opt3: 'XXX',
        //     opt4: 'XXX',
        //     score: '5'
        }
    ],
    fill_blank: [
        {
            number: '5',
            title: 'XXXXXXXXXX___XXX',
            score: '5'
        },
        {
            number: '6',
            title: 'XXXXXXXXXX___XXX',
            score: '5'
        // },
        // {
        //     number: '13',
        //     title: 'XXXXXXXXXX___XXX',
        //     score: '5'
        // },
        // {
        //     number: '14',
        //     title: 'XXXXXXXXXX___XXX',
        //     score: '5'
        // },
        // {
        //     number: '15',
        //     title: 'XXXXXXXXXX___XXX',
        //     score: '5'
        }
    ],
    judgement: [
        {
            number: '7',
            title: 'XXXXXXXXXXXXX',
            score: '5'
        },
        {
            number: '8',
            title: 'XXXXXXXXXXXXX',
            score: '5'
        // },
        // {
        //     number: '18',
        //     title: 'XXXXXXXXXXXXX',
        //     score: '5'
        // },
        // {
        //     number: '19',
        //     title: 'XXXXXXXXXXXXX',
        //     score: '5'
        // },
        // {
        //     number: '20',
        //     title: 'XXXXXXXXXXXXX',
        //     score: '5'
        }
    ]
}

const papers_teacher = [
    {
        test_id : 'p4526836',
        start_time: '2021-01-03 10:00:00',
        end_time: '2021-01-03 12:00:00',
        exam_time: '120',
        exam_name: '期中考',
        score: '100',
        finish: '0',
        publish: '1',
        has_paper: '1'
    },
    {
        test_id : 'p4526844',
        start_time: '2021-01-03 10:00:00',
        end_time: '2021-01-03 12:00:00',
        exam_time: '120',
        exam_name: '期中考',
        score: '100',
        finish: '1',
        publish: '1',
        has_paper: '1'
    },
    {
        test_id : 'p45265665',
        start_time: '2021-01-03 10:00:00',
        end_time: '2021-01-03 12:00:00',
        exam_time: '120',
        exam_name: '期中考',
        score: '100',
        finish: '0',
        publish: '0',
        has_paper: '1'
    },
    {
        test_id : 'p4526845',
        start_time: '2021-01-03 10:00:00',
        end_time: '2021-01-03 12:00:00',
        exam_time: '120',
        exam_name: '期中考',
        score: '100',
        finish: '0',
        publish: '0',
        has_paper: '0'
    },
    {
        test_id : 'p45268236',
        start_time: '2021-01-03 10:00:00',
        end_time: '2021-01-03 12:00:00',
        exam_time: '120',
        exam_name: '期中考',
        score: '100',
        finish: '0',
        publish: '1',
        has_paper: '1'
    }
]

export default [
    // student get paper
    // {
    //   url: '/studet/paper/list',
    //   type: 'post',
    //   response: config => {
    //     const { c_id,  s_id} = config.body
    //     console.log("课程id" + c_id + " 学生id" + s_id)
    //     return {
    //         exams: papers
    //     }
    //   }
    // },
    // student get score
    // {
    //     url: '/studet/paper/score',
    //     type: 'post',
    //     response: config => {
    //         const { test_id, s_id } = config.body
    //         console.log("test id" + test_id + " student id " + s_id)
    //         return {
    //             exam_name: '期中考',
    //             score: 90
    //         }
    //     }
    // },
    // student get paper
    // {
    //     url: '/studet/paper/get',
    //     type: 'post',
    //     response: config => {
    //         const { test_id } = config.body
    //         return {
    //             test_id: test_id,
    //             tests
    //         }
    //     }
    // },
    //student handle paper
    // {
    //     url: '/studet/paper/submit',
    //     type: 'post',
    //     response: config => {
    //         const { test_id, s_id, answers } = config.body
    //         console.log(test_id)
    //         console.log(s_id)
    //         console.log(answers)
    //         return {
    //             code: 200
    //         }
    //     }
    // },
    //teacher get tests
    // {
    //     url: '/teacher/exma/list',
    //     type: 'post',
    //     response: config => {
    //         const { c_id } = config.body
    //         console.log(c_id)
    //         if (c_id) {
    //             return {
    //                 exams: papers_teacher
    //             }
    //         } else {
    //             return {
    //                 code: 500
    //             }
    //         }
    //     }
    // }

  ]
  